public class FindThePrimeNumber {
    public static void main(String[] args) {
        boolean[] helper=new boolean[100];
        for(int i=2;i<helper.length;i++){
            if(helper[i]==false) {
                System.out.print(i + " ");
            }
            for(int j=i;j< helper.length;j+=i){
                helper[j]=true;
            }
        }
    }
}
